package com.qf.health.service.impl;

import com.qf.health.domain.Things;
import com.qf.health.mapper.ThingsMapper;
import com.qf.health.service.ThingsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.smartcardio.Card;


@Service
@Transactional(rollbackFor = Exception.class)
public class ThingsServiceImpl implements ThingsService {
    @Autowired
    ThingsMapper thingsMapper;
    @Override
    public int  addThings(Things things) {

       return  thingsMapper.insertSelective(things);
    }

    @Override
    public int deleteThings(Things things) {
       return thingsMapper.deleteById(things);
    }

    @Override
    public Things selectById(Integer idcard) {

        return thingsMapper.selectById(idcard);
    }


}
